/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.io.Serializable;

/**
 *
 * @author ibrahim
 */
public class Restaurateur implements Serializable {
    
    private  int id;
    private static int count=1;
    private String fname;
    private String lname;
    private Expertise expertise;
    private boolean citizen;
    private String permanantCode;
    private Gender gender;
    
     public Restaurateur(String fname, String lname, Expertise expertise, boolean citizen, String permanantCode, Gender gender){
        
        this.fname=fname;
        this.lname=lname;
        this.expertise=expertise;
        this.citizen=citizen;
        this.permanantCode=permanantCode;
        this.gender=gender;
        this.id=count;
        count++;
        
        
        
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the fname
     */
    public String getFname() {
        return fname;
    }

    /**
     * @param fname the fname to set
     */
    public void setFname(String fname) {
        this.fname = fname;
    }

    /**
     * @return the lname
     */
    public String getLname() {
        return lname;
    }

    /**
     * @param lname the lname to set
     */
    public void setLname(String lname) {
        this.lname = lname;
    }

    /**
     * @return the expertise
     */
    public Expertise getExpertise() {
        return expertise;
    }

    /**
     * @param expertise the expertise to set
     */
    public void setExpertise(Expertise expertise) {
        this.expertise = expertise;
    }

    /**
     * @return the citizen
     */
    public boolean isCitizen() {
        return citizen;
    }

    /**
     * @param citizen the citizen to set
     */
    public void setCitizen(boolean citizen) {
        this.citizen = citizen;
    }

    /**
     * @return the permanantCode
     */
    public String getPermanantCode() {
        return permanantCode;
    }

    /**
     * @param permanantCode the permanantCode to set
     */
    public void setPermanantCode(String permanantCode) {
        this.permanantCode = permanantCode;
    }

    /**
     * @return the gender
     */
    public Gender getGender() {
        return gender;
    }

    /**
     * @param gender the gender to set
     */
    public void setGender(Gender gender) {
        this.gender = gender;
    }
    public String toString(){
        return this.id + ": " + this.fname;
    }
}
